home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / dtadmo / form1.frm < prev    next >
Text File  |  1994-10-15  |  8KB  |  285 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   4305
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1485
  7.    ClientWidth     =   7365
  8.    Height          =   4710
  9.    Left            =   1035
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4305
  12.    ScaleWidth      =   7365
  13.    Top             =   1140
  14.    Width           =   7485
  15.    Begin CommandButton cmdEnd 
  16.       Caption         =   "End"
  17.       Height          =   615
  18.       Left            =   5400
  19.       TabIndex        =   21
  20.       Top             =   3480
  21.       Width           =   1815
  22.    End
  23.    Begin CommandButton cmdDemoDtaCtrl 
  24.       Caption         =   "Demo data control"
  25.       Height          =   255
  26.       Left            =   1440
  27.       TabIndex        =   8
  28.       Top             =   3840
  29.       Width           =   2055
  30.    End
  31.    Begin CommandButton cmdKillMDBFile 
  32.       Caption         =   "Kill USPLACE.MDB"
  33.       Height          =   615
  34.       Left            =   5400
  35.       TabIndex        =   9
  36.       Top             =   960
  37.       Width           =   1815
  38.    End
  39.    Begin CommandButton cmdDemoDupeErr 
  40.       Caption         =   "Demo dup index err"
  41.       Height          =   255
  42.       Left            =   1440
  43.       TabIndex        =   7
  44.       Top             =   3480
  45.       Width           =   2055
  46.    End
  47.    Begin CommandButton cmdSeekOnName 
  48.       Caption         =   "Seek on Name Index"
  49.       Height          =   255
  50.       Left            =   1440
  51.       TabIndex        =   6
  52.       Top             =   3120
  53.       Width           =   2055
  54.    End
  55.    Begin CommandButton cmdNameIndex 
  56.       Caption         =   "Add Index on Name"
  57.       Height          =   255
  58.       Left            =   1440
  59.       TabIndex        =   5
  60.       Top             =   2760
  61.       Width           =   2055
  62.    End
  63.    Begin CommandButton cmdLoadFile 
  64.       Caption         =   "Load File w/ Data"
  65.       Height          =   255
  66.       Left            =   1440
  67.       TabIndex        =   4
  68.       Top             =   2400
  69.       Width           =   2055
  70.    End
  71.    Begin CommandButton cmdAddPrimaryKey 
  72.       Caption         =   "Add Primary Key"
  73.       Height          =   255
  74.       Left            =   1440
  75.       TabIndex        =   3
  76.       Top             =   2040
  77.       Width           =   2055
  78.    End
  79.    Begin CommandButton cmdAddField 
  80.       Caption         =   "Add Field to Table"
  81.       Height          =   255
  82.       Left            =   1440
  83.       TabIndex        =   2
  84.       Top             =   1680
  85.       Width           =   2055
  86.    End
  87.    Begin CommandButton cmdMakeTable 
  88.       Caption         =   "Make Table"
  89.       Height          =   255
  90.       Left            =   1440
  91.       TabIndex        =   1
  92.       Top             =   1320
  93.       Width           =   2055
  94.    End
  95.    Begin CommandButton cmdMakeDataBase 
  96.       Caption         =   "Make Data base"
  97.       Height          =   255
  98.       Left            =   1440
  99.       TabIndex        =   0
  100.       Top             =   960
  101.       Width           =   2055
  102.    End
  103.    Begin Label Label3 
  104.       Height          =   735
  105.       Left            =   3600
  106.       TabIndex        =   20
  107.       Top             =   2400
  108.       Width           =   3615
  109.    End
  110.    Begin Label Label2 
  111.       Alignment       =   1  'Right Justify
  112.       Caption         =   "Step 9"
  113.       Height          =   255
  114.       Index           =   8
  115.       Left            =   120
  116.       TabIndex        =   19
  117.       Top             =   3840
  118.       Width           =   1095
  119.    End
  120.    Begin Label Label2 
  121.       Alignment       =   1  'Right Justify
  122.       Caption         =   "Step 8"
  123.       Height          =   255
  124.       Index           =   7
  125.       Left            =   120
  126.       TabIndex        =   18
  127.       Top             =   3480
  128.       Width           =   1095
  129.    End
  130.    Begin Label Label2 
  131.       Alignment       =   1  'Right Justify
  132.       Caption         =   "Step 7"
  133.       Height          =   255
  134.       Index           =   6
  135.       Left            =   120
  136.       TabIndex        =   17
  137.       Top             =   3120
  138.       Width           =   1095
  139.    End
  140.    Begin Label Label2 
  141.       Alignment       =   1  'Right Justify
  142.       Caption         =   "Step 6"
  143.       Height          =   255
  144.       Index           =   5
  145.       Left            =   120
  146.       TabIndex        =   16
  147.       Top             =   2760
  148.       Width           =   1095
  149.    End
  150.    Begin Label Label2 
  151.       Alignment       =   1  'Right Justify
  152.       Caption         =   "Step 5"
  153.       Height          =   255
  154.       Index           =   4
  155.       Left            =   120
  156.       TabIndex        =   15
  157.       Top             =   2400
  158.       Width           =   1095
  159.    End
  160.    Begin Label Label2 
  161.       Alignment       =   1  'Right Justify
  162.       Caption         =   "Step 4"
  163.       Height          =   255
  164.       Index           =   3
  165.       Left            =   120
  166.       TabIndex        =   14
  167.       Top             =   2040
  168.       Width           =   1095
  169.    End
  170.    Begin Label Label2 
  171.       Alignment       =   1  'Right Justify
  172.       Caption         =   "Step 3"
  173.       Height          =   255
  174.       Index           =   2
  175.       Left            =   120
  176.       TabIndex        =   13
  177.       Top             =   1680
  178.       Width           =   1095
  179.    End
  180.    Begin Label Label2 
  181.       Alignment       =   1  'Right Justify
  182.       Caption         =   "Step 2"
  183.       Height          =   255
  184.       Index           =   1
  185.       Left            =   120
  186.       TabIndex        =   12
  187.       Top             =   1320
  188.       Width           =   1095
  189.    End
  190.    Begin Label Label2 
  191.       Alignment       =   1  'Right Justify
  192.       Caption         =   "Step 1"
  193.       Height          =   255
  194.       Index           =   0
  195.       Left            =   120
  196.       TabIndex        =   11
  197.       Top             =   960
  198.       Width           =   1095
  199.    End
  200.    Begin Label Label1 
  201.       Alignment       =   2  'Center
  202.       BorderStyle     =   1  'Fixed Single
  203.       Caption         =   "Click buttons in sequential order to see things work properly. Then, delete the db and/or try things out of order or click buttons more than once to see the errors generated and trapped."
  204.       Height          =   855
  205.       Left            =   240
  206.       TabIndex        =   10
  207.       Top             =   0
  208.       Width           =   4335
  209.    End
  210. End
  211.  
  212. Sub cmdAddField_Click ()
  213.     addfield
  214.  
  215. End Sub
  216.  
  217. Sub cmdAddPrimaryKey_Click ()
  218.     makeindex
  219.  
  220. End Sub
  221.  
  222. Sub cmdDemoDtaCtrl_Click ()
  223.     form2.Show 1
  224.  
  225. End Sub
  226.  
  227. Sub cmdDemoDupeErr_Click ()
  228.     'the primary key must be unique and if
  229.     'the project is run in order, Tucson
  230.     'will already be in the database
  231.     addtucson
  232.  
  233. End Sub
  234.  
  235. Sub cmdEnd_Click ()
  236.     End
  237.  
  238. End Sub
  239.  
  240. Sub cmdKillMDBFile_Click ()
  241. 'Global Const MB_YESNO = 4              ' Yes and No buttons
  242. 'Global Const IDYES = 6                 ' Yes button pressed
  243. 'Global Const MB_DEFBUTTON2 = 256       ' Second button is default
  244.  
  245.     Dim response As Integer
  246.     response = MsgBox("Are sure you want to delete the MDB database?", MB_YESNO + MB_DEFBUTTON2)
  247.     If response = IDYES Then killmdb
  248.  
  249. End Sub
  250.  
  251. Sub cmdLoadFile_Click ()
  252.     additems Label3
  253.  
  254. End Sub
  255.  
  256. Sub cmdMakeDataBase_Click ()
  257.     makedb
  258.  
  259. End Sub
  260.  
  261. Sub cmdMakeTable_Click ()
  262.     maketable
  263.  
  264. End Sub
  265.  
  266. Sub cmdNameIndex_Click ()
  267.     addnameidx
  268.  
  269. End Sub
  270.  
  271. Sub cmdSeekOnName_Click ()
  272.     seekname
  273.  
  274. End Sub
  275.  
  276. Sub Form_Load ()
  277.     If Right$(app.Path, 1) = "\" Then
  278.         ThePath = app.Path
  279.     Else
  280.         ThePath = app.Path & "\"
  281.     End If
  282.  
  283. End Sub
  284.  
  285.